#非零或布尔值true
import random
xuanxiang = ['石头', '剪刀', '布']
wins = [['石头', '剪刀'], ['剪刀', '布'], ['布', '石头']]
prompt = '''(0)石头 (1)剪刀 (2)布'''
c = random.choice(xuanxiang)
p = int(input(prompt))
print('你出的%s, 计算机出的%s' % (p, c))
if c == p:
    print('平手')
elif [p, c ] in wins:
    print('You Win')
else:
    print('You Lose')